package resultsDatabase;

import java.io.Serializable;
import java.util.ArrayList;

import recordsDatabase.ListOfCategories;
import recordsDatabase.Person;

public class Field implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -5179354398651675802L;
	private String category;
	private String field;
	private ArrayList<Person> personsList = new ArrayList<Person>();

	public Field(String c, String f) {
		category = c;
		field = f;
		for (Person p : ListOfCategories.getInstance().getCategory(category)
				.getCategoyDetails(field).getPersonsList()) {
			personsList.add(p);
		}

	}

	public String getCategory() {
		return category;
	}

	public String getField() {
		return field;
	}

	public ArrayList<Person> getPersonsList() {
		return personsList;
	}
}
